Properly handle generating authentication signature for URIs with query params.