fix($urlMatcherFactory): fix encoding slashes in params

Closes #1119