code: public static String enc(String unencodedString) {
  		try {
  			return URLEncoder.encode(unencodedString, "UTF-8");
  		} catch (UnsupportedEncodingException e) {
  		} // UTF-8 is never unsupported
  		return null;
  	}
docs: Shortcut to URLEncoder.encode with UTF-8.
  
  @param unencodedString
  the string to encode
  @return the URL encoded string, safe to be used in URLs