@Override
    public String fromBytes(byte[] bytes) {
        return new String(bytes, StandardCharsets.UTF_8);
    }
The string decoder translates bytes into strings. It uses UTF8 by default.
tools/tools-api/src/main/java/org/apache/kafka/tools/api/StringDecoder.java