public static String urlEncode(String s){
  try {
    return URLEncoder.encode(s,"UTF-8");
  }
 catch (  Exception e) {
    throw DbException.convert(e);
  }
}

public static String urlEncode ( String s ) { try { return URLEncoder . encode ( s , "UTF-8" ) ; } catch ( Exception e ) { throw DbException . convert ( e ) ; } }
encode the string as an url .
