code: public static String encodeUrl(final String urlStr) {
  		if (Util.empty(urlStr)) {
  			return urlStr;
  		}
  		// Percent Encode
  		String percentEncode = percentEncodeUrl(urlStr);
  		// XML Enocde
  		return encode(percentEncode);
  	}
docs: Encode URL for XML.
  
  @param urlStr the URL to escape
  @return the URL percent encoded