code: public static String encode(String pe) {
          for (Map.Entry<String, String> e : TABLE.entrySet())
              //if (!e.getKey().equals("%22"))
              pe = pe.replace(e.getValue(), e.getKey());
  
          return pe;
      }
docs: /*
  percent encoding for a String