code: public static String urlEncode(String original, String encoding)
      throws UnsupportedEncodingException
    {
      return new URLCodec(true, encoding).urlEncode(original);
    }
docs: Encapsulates the call to encoding a URL
  
  @param original the string to encode
  @param encoding the encoding to use
  @return the encoded url