code: private static String getKeyValuePair(final Entry<String,String> param, 
          final boolean formEncoding)
          {
          try 
              {
              return getKeyValuePair(param.getKey(),param.getValue(),formEncoding);
              }
          catch (final Exception e)
              {
              LOG.error("Could not get encoding for: {}", param, e);
              return "unknown=unknown";
              }
          }
docs: Returns a key/value pair string for URL parameter encoding.
  
  @param param The parameter key/value pair.
  
  @return A key/value pair string for URL parameter encoding.