Fix mangling of username/password containing % char
Merge pull request #1662 from iroli1/master

Fix mangling of username/password containing % char