code: public static String encode(String value) throws UnsupportedEncodingException {
          if (isNullOrEmpty(value)) return value;
          return URLEncoder.encode(value, URL_ENCODING);
      }
docs: used for encoding queries or form data