public static String readUtf8(final byte[] in) {
        if (in == null) {
            return null;
        }
        if (UnsafeUtil.hasUnsafe()) {
            return UnsafeUtf8Util.decodeUtf8(in, 0, in.length);
        } else {
            return new String(in, StandardCharsets.UTF_8);
        }
    }
This method has better performance than String#String(byte[], Charset),
See the benchmark class: Utf8Benchmark for details.
jraft-core/src/main/java/com/alipay/sofa/jraft/util/BytesUtil.java