Downloading a excel file from s3 broken depending on contentType?

This is similar in the vein to this: Download a file from API

I have some excel files stored on s3 with the ContentType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx) and application/ (xls). When I download these file using an s3 bucket resource, it breaks the file content - but if I navigate to s3 directly for download, it works fine.

This also seems to break the utils.downloadFile Function. I was trying to use this function to rename the file I am downloading by first reading the file from s3, and then calling utils.downloadFile with the binary downloaded. I got this suggestion from here: S3 Download - Rename File

related S3 Download Query Corrupts .XLSX Files

Using the workaround for now.