Backport of url decoding only once in UrlMatcher

This should fix the issue of @schiesbn in owncloud/core#1769

@karlitschek