Add failing test for encoded routes with a query

A route like /this%2FAthat with a query string is being assembled
wrongly to /this/that?foo=bar