Update client.rb

URI.encode