code: public static EncodedPair toPair(String nameToEncode, String valueToEncode, Charset charset) throws UnsupportedEncodingException {
          return toPair(nameToEncode, valueToEncode, charset, false);
      }
docs: Returns a EncodedPair with the given name/value considered as not encoded
  @param nameToEncode name to encode
  @param valueToEncode value to encode
  @param charset charset to use while encoding the name/value
  @return the encoded pair object
  @throws UnsupportedEncodingException When the given charset is not supported