private static String urlEncode(final String text) throws UnsupportedEncodingException {
  return URLEncoder.encode(text,"UTF-8");
}

private static String urlEncode ( final String text ) throws UnsupportedEncodingException { return URLEncoder . encode ( text , "UTF-8" ) ; }
encode text as utf - 8
