Fixed bug regarding routing and the query string

Hi,

It seems like the router referred to old code `$this->request->uri(true)` for stripping the query string from the URI, I changed it to use the `pathname` method defined in the `Request` class.

Kind regards,

Fred Oranje