support encoded usernames and passowrds in url

- support a username or password in request url with encoded chars
adding tests for encoded username and password
Merge pull request #781 from punkle/encodedcredsinurl

support encoded usernames and passowrds in url