code: static String escapeText(final String input)
      {
          return escapeBytes(ByteBuffer.wrap(input.getBytes(ISO_8859_1))).toString();
      }
docs: 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.