Pre-signed URL query parameters are not handled properly

The query parameters of a pre-signed request are dropped by the s3 rewrite module and this causes authentication for any requests using this type of request to fail.