static String escapeText(final String input)
    {
        return escapeBytes(ByteBuffer.wrap(input.getBytes(ISO_8859_1))).toString();
    }
Like {@link #escapeBytes(ByteString)}, but escapes a text string. Non-ASCII characters are first encoded as
UTF-8, then each byte is escaped individually as a 3-digit octal escape. Yes, it's weird.
protostuff-parser/src/main/java/io/protostuff/parser/TextFormat.java