Tests for #1767.
Unquote the URL before extracting the auth.
Merge pull request #1768 from Lukasa/credpct

Unencode usernames and passwords taken from URLs.