Routing can cope with question marks in URL

The routing routine failed when e.g. a third party added normal
"question mark GET parameters" to the URL. With this commit these
parameters are removed before the URL parts are separated.