Fix URL parameters being wrongly routed

File are incorrectly routed when they have URL parameters.

This patch fixes #79 by stripping the query string from the request URI.