code: public static String encodeQuery(String query) throws NullPointerException {
  		return new String(encode(query, UriComponentEncoderBitSets.allowed_query));
  	}
docs: Encodes an HTTP URI Query.
  @param query
  @return
  @throws NullPointerException