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