user name and password need to be encoded as well
fixes #1652
Merge pull request #1654 from owncloud/fixing-1652-master

user name and password need to be encoded as well