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);
        }
    }
@Test
    public void toUtf8StringTest() {
        for (int i = 0; i < 100000; i++) {
            String str = UUID.randomUUID().toString();
            byte[] in = Utils.getBytes(str);
            assertEquals(new String(in, StandardCharsets.UTF_8), BytesUtil.readUtf8(in));
        }
    }