Use the final URL from the finished request instead of the provided URL for filename generation, to properly deal with redirects.