Fix URI path/query part escaping

New version of URI escaping that actually works. I agree it would be better to keep this logic in client.rb, but that is not possible, since view.rb and job.rb deal with URI already. A problem is that the parts needs to be escape differently depending on whether they are part of the URI path or the URI query.

To truly fix this in client, everything would need to be refactored to keep URI formatting out of job.rb/view.rb/etc.

This commit fixes

- Correct escaping of +/spaces in query path using URI.encode_www_form_component
- Correct escape of paths (e.g. unicode chars) using URI.escape
- Automatic conversion to UTF-8 character set