class TypeEncoder {

    static String encodeString(Utf8String string) {
        byte[] utfEncoded = string.getValue().getBytes(Charset.forName("UTF-8"));
        return encodeDynamicBytes(new DynamicBytes(utfEncoded));
    }

    private  TypeEncoder();

}