code: protected String encode(String value)
      {
          try
          {
              return URLEncoder.encode(value,"UTF-8");
          }
          catch (UnsupportedEncodingException e)
          {
              throw new ClientException(500,"Error encoding parameter.",e);
          }
      }
docs: Encode the supplied string
  @param value The string
  @return The enclded value