Fix for incorrect default encoding on Windows.