Stripping GET parameters (/foo?bar=baz) from URI