Branch/fix windows utf8

Merged Armin Rigo requested to merge branch/fix-windows-utf8 into branch/py3.6

Fix for issue #3211 (closed)

Merge request reports