[GHC] #8167: build fails in non-unicode locale [happy: compiler/stage1/build/Parser.y: hGetContents: invalid argument (invalid byte sequence)]