alexreisner/geocoder — pull request #360 by m0thman (2012-12-20 13:52:38+00:00)
Title: Fix query params escaping for OauthUtil

Current implementation of oauth util does not escape URL params correctly.
Request fails for Yahoo BOSS service when contains `'` character. It happens because in `sign` method query params are unescaped by CGI.parse and then they are not fully escaped by `percent_encode`.

I'm sure that query values and keys should be fully escaped with `CGI.escape`. Proposed logic taken from ActiveSupport's Object extension (`Hash::to_query` and `Object::to_param` methods).

Tested with Yahoo BOSS and works as expected.