code: public static String encodeUTF8(String c) {
      StringBuilder r = new StringBuilder();
      for (int i = 0; i < c.length(); i++) {
        r.append(encodeUTF8(c.charAt(i)));
      }
      return (r.toString());
    }
docs: Encodes a String to UTF8