protected String encode ( final String source ) { try { return URLEncoder . encode ( source , "UTF-8" ) ; } catch ( Exception ex ) { throw new RuntimeException ( "Could not prepare view argument: " + ex ) ; } }
Helper method to properly encode a string .