Fixed incorrect encoding/decoding in urlMatcherFactory for parameters.

Fixes #278