Is there a better way of constructing a query string in ruby? In python you can make a dict and then call urllib.urlencode(some_dict).  I bet ruby has something like that.