question: public String urlEncode ( String toEncode ) { try { return URLEncoder . encode ( toEncode , "utf-8" ) ; } catch ( Exception e ) { LOG . error ( "Error url encoding " + toEncode + ": " + e ) ; } return toEncode ; }
target:  Encodes a String using a URL encoder