public static byte[] utf8(String string) {
        return string.getBytes(StandardCharsets.UTF_8);
    }
Turn a string into a utf8 byte[]

@param string The string
@return The byte[]
clients/src/main/java/org/apache/kafka/common/utils/Utils.java