Fix #96 Write files with utf8 encoding, not, effectively, char8
Based on my experiments on Windows, issue:
- #96
can be fixed by writing files with UTF8 encoding, instead of, effectively, char8.
The CI fails with GHC 8.2.2. However: (a) I think that is for reasons unrelated to this pull request and (b) GHC 8.2.2, released on 22 July 2017, is considered obsolete by the Cabal and Stack projects.
The CI for Linux/GHC 9.12.20241014 is failing for reasons unrelated to this pull request.
I have not investigated what the current CI actually tests but, having identified the original GHC issue https://gitlab.haskell.org/ghc/ghc/-/issues/3837, I tested on Windows 11 with the given A.hsc:
-- エ
and that still worked.