The scene contains some interesting names, which requires to be written as utf-8. And on Windows file descriptor is not guaranteed to be using utf-8. Or, will error out if the invalid utf-8 sequence is written. This change makes it so running benchmarks on windows it fully successful. Pull Request: https://projects.blender.org/blender/blender/pulls/108982