code: private void encodePair(StringBuffer result, String name, Object value, boolean first) {
      if (!first)
        result.append('&');
      URLEncode(result, name);
      result.append('=');
      encodeObject(result, value);
    }
docs: Encode a 'name=value' pair