If GHC version >= 7.10.3, Stack should be able to set the GHC_CHARENC environment variable to make GHC use UTF-8 encoding for its console output and dump files. It should no longer need to use code-page hacks on Windows, or set LANG, LC_ALL, etc. on POSIX.