code: public static String escape(String value) {
          for (int i = 0; i < value.length(); i++) {
              if (isEscapingChar(value.charAt(i))) {
                  return doEscape(value.getBytes(StandardCharsets.UTF_8), i);
              }
          }
          return value;
      }
docs: Escape the provided unicode {@link String} into ascii.