public static boolean isLatin1(String s) {
        if (s == null) {
            throw new IllegalArgumentException("The input string must not be null");
        }
        try {
            return UNSAFE.getByte(s, STRING_CODER_OFFSET) == LATIN1;
        } catch (Exception e) {
            throw new IncompatibleJvmException("Failed to get the coder of the input string", e);
        }
    }
@implNote 1. The strings must be ASCII and the method won't validate their coder for better
          performance.
          <p>
          2. The number of placeholder "{}" must equal the number of arguments, or its will
          throw. We don't support mismatch to avoid growing or shrinking the result string,
          or preprocess the message, which causes a bad performance while it can be avoided.
turms-server-common/src/main/java/im/turms/server/common/infra/lang/StringUtil.java