Quote filenames properly upon download redirection.

This adds support for umlauts and special characters in filenames.