anchor.diff:  		<cfargument type="String" name="input" required="true">
   		<cfscript>
   	    	try {
  -				return createObject("java", "java.net.URLEncoder").encode(arguments.input, instance.ESAPI.securityConfiguration().getCharacterEncoding());
  +				return createObject("java", "java.net.URLEncoder").encode(javaCast("string", arguments.input), instance.ESAPI.securityConfiguration().getCharacterEncoding());
   			} catch (java.io.UnsupportedEncodingException ex) {
   				cfex = createObject("component", "cfesapi.org.owasp.esapi.errors.EncodingException").init(instance.ESAPI, "Encoding failure", "Character encoding not supported", ex);
              		throw(type=cfex.getType(), message=cfex.getUserMessage(), detail=cfex.getLogMessage());
  
positive.code: 	<cffunction access="public" returntype="String" name="encodeForXPath" output="false">
  		<cfargument type="String" name="input" required="true">
  		<cfscript>
  	    	return createObject("java", "org.owasp.esapi.codecs.HTMLEntityCodec").init().encode( static.IMMUNE_XPATH, arguments.input);
  		</cfscript>
  	</cffunction>
  
  
negative.code: 	<cffunction access="public" returntype="String" name="encodeForXML" output="false">
  		<cfargument type="String" name="input" required="true">
  		<cfscript>
  	    	return createObject("java", "org.owasp.esapi.codecs.XMLEntityCodec").init().encode( static.IMMUNE_XML, javaCast("string", arguments.input));
  		</cfscript>
  	</cffunction>
  
  