code: public static String encodeQueryParam(String queryParam, String encoding) throws UnsupportedEncodingException {
  		return HierarchicalUriComponents.encodeUriComponent(queryParam, encoding, HierarchicalUriComponents.Type.QUERY_PARAM);
  	}
docs: Encodes the given URI query parameter with the given encoding.
  @param queryParam the query parameter to be encoded
  @param encoding the character encoding to encode to
  @return the encoded query parameter
  @throws UnsupportedEncodingException when the given encoding parameter is not supported