code: public static String encode(final String decoded, final String charset) 
          throws UnsupportedEncodingException {
          return s_codec.encode(decoded, charset);
      }
docs: URL encodes a string.
  @param decoded the string to encode
  @param charset the character set to use
  @return the encoded string