Routing routine can cope with question marks

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 seperated.