code: public static String encode(String value, Charset charset) {
      return encodeReserved(value, FragmentType.URI, charset);
    }
docs: Uri Encode the value. Already encoded values are skipped.
  
  @param value to encode.
  @param charset to use.
  @return the encoded value.