Hi,
Did you solve that issue? I have the same problem with some pdf/jpg files. Though, we have a lot of files in our app we receive few complaints that downloaded files are of type .htm, thus it looks like the majority of files download correctly. We also use slug as the name of the downloaded file, thus no need to sanitize the name.