Update client.rb

When a HTTP redirect was received the code was attempting to recurse using a method argument that did not exist.
use CGI escape to encode data values
Properly require CGI
CGI escape key and value
Add unit test coverage to Artifactory::Client#to_query_string