question: public String encode ( String pString , String charset ) throws UnsupportedEncodingException { if ( pString == null ) { return null ; } return new String ( encode ( pString . getBytes ( charset ) ) , StringEncodings . US_ASCII ) ; }
target:  Encodes a string into its URL safe form using the specified string charset. Unsafe characters are escaped.