use Hash#to_query instead of URI#encode_www_form for consistency.