I have a Wordpress online shop with Woocommerce. In the Dashboard I have a plugin which allows me to export more invoices at once. The export operation generates a zip archive and then opens a download popup. When downloading the zip archive like this it is corrupt. The corrupt file that is sent via the download function has the 3 bytes of the UTF-8 byte-order-mark appended at the start (0xEF,0xBB,0xBF).
When downloading the file via FTP it is working. This means the zip archive is okay, but the download is changing it with the header.