Badly formatted redirects not escaped correctly

In a service I am querying (TFS OData)

`/DefaultCollection/Builds?$filter=Definition+eq+'My.Defn_Site'` redirects to:

`/DefaultCollection/Builds?$filter=Definition+eq+%27My.Defn_Site%27 and StartTime ne datetime'0001-01-01T00:00:00.000'`

RestClient gives an error (URI::InvalidURIError) when trying to follow the redirect because of the unescaped spaces (I believe) in the URL. It errors here: https://github.com/archiloque/rest-client/blob/master/lib/restclient/abstract_response.rb#L66