Fixed issues with unicode on windows