Fix encoding for the download