user name and password need to be encoded as well

fixes https://github.com/owncloud/core/issues/1652

@icewind1991 @karlitschek @MTGap