Fixed regex route switch.
Removed decoding in string replacement.