mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-08-28 23:16:30 -05:00

This properly handles unicode-based paths on Windows, while opening a raw stream doesn't out-of-the-box. Prevents file creation from potentially failing on Windows PCs that make use of unicode characters in their save paths (e.g. writing to a user's AppData folder, where the user has a name with non-ASCII characters).