Don't redo so much work creating URL-encoded params.

Create a single URI::Parser and a single Regexp object, and reuse them.
Merge remote-tracking branch 'nelhage/urlencode-perf'

Conflicts:
	lib/restclient/payload.rb