Fix handling of urlencoded user and password in proxy urls, fixes #2339