Test that directory redirects pass through the query string unencoded