Fix mangling of username/password containing % char

Bug originally reportet against core (https://github.com/owncloud/core/issues/7154)