public static String encodeUrl(final String str){
  return encode(str,"%20");
}

public static String encodeUrl ( final String str ) { return encode ( str , "%20" ) ; }
encode a string for html requests
