This issue is found using Assistants API which does not support what you’re describing. Code Interpreter explicitly supports output (and files) of certain file types & formats: https://platform.openai.com/docs/assistants/tools/code-interpreter
This is a bug any way you look at it.
I can however report that the issue was decreased in subsequent updates of the GPT-4-turbo model.