code: private String encode(final String s) throws UnsupportedEncodingException {
          return URLEncoder.encode(s, CharEncoding.UTF_8);
      }
docs: Encode given String for usage in URL. UTF-8 is used as per recommendation
  at http://www.w3.org/TR/html40/appendix/notes.html#non-ascii-chars
  @param s String to be encoded
  @return Encoded string
  @throws UnsupportedEncodingException if UTF-8 is unsupported, handled in caller for better log message