static String encodeString(Utf8String string) {
        byte[] utfEncoded = string.getValue().getBytes(StandardCharsets.UTF_8);
        return encodeDynamicBytes(new DynamicBytes(utfEncoded));
    }
@Test
    public void testUtf8String() {
        Utf8String string = new Utf8String("Hello, world!");
        assertEquals(
                TypeEncoder.encodeString(string),
                ("000000000000000000000000000000000000000000000000000000000000000d"
                        + "48656c6c6f2c20776f726c642100000000000000000000000000000000000000"));
    }