Attempt to recover from non-uri-encoded location headers

Hey Mikeal,

I came across a strange bug while trying to use request to download some files from github. From what I could tell, what was happening was that a redirect uri to cloud.github.com has a space in it, and that this space on the second request confused github's servers.

I was able to get a fix together for myself at least, so I'm sharing. I'm sure you can think of a better way to do this check, but at least this gives you an idea?

Anyway.