Make redirection urls lowercase and ensure percent escapes are digits.

https://github.com/kennethreitz/requests/issues/1715
and
https://github.com/kennethreitz/requests/issues/1714