Add hotfix for windows text display encoding.

Windows encoding hotfix.

Need test on Windows and Linux if it broke something.