Try to set encoding automatically on windows