public class URLParamEncoder
extends java.lang.Object
Encodes URLs, escaping as appropriate.
Copied from fmucar's answer in http://stackoverflow.com/questions/724043/http-url-address-encoding-in-java
TODO Want to use a library utility, but couldn't find this in guava and don't want to introduce
dependency on commons-httpclient-3.1 to use URIUtil.