I would move this to ``addQueryStringPair`` so that both the key and the value are encoded in the same place. But that's just a personal preference.