code: private void encodeObject(StringBuffer result, Object value) {
      if (value != null) {
        if (value instanceof byte[]) {
          result.append("[]");
          HexString.binToHex((byte[])value, 0, ((byte[])value).length, result);
        } else
          URLEncode(result, value.toString());
      }
docs: Encode an arbitrary value