encoding and decoding special characters properly

Now uses the RoutesCompiler to properly encode and decode url parts