code: public static String urlEncode(String input)
  	{
  		if (input == null)
  		{
  			return "";
  		}
  		try
  		{
  			return URLEncoder.encode(input, "UTF-8");
  		}
  		catch (UnsupportedEncodingException uee)
  		{
  			String result = StringSupport.replaceAll(input, "&", "%26");
  			result = StringSupport.replaceAll(result, "<", "%3c");
  			result = StringSupport.replaceAll(result, ">", "%3e");
  			result = StringSupport.replaceAll(result, "\"", "%22");
  			result = StringSupport.replaceAll(result, " ", "+");
  			return result;
  		}
  	}
docs: Encodes a String in format suitable for use in URL's
  
  @param input
  @return