fix issue where empty query params resulted in a trailing ? at end of url in requests.rb