Use a multibyte-neutral codepage when calling *printf on Windows. More explanation in code comments. Fixes issue 4046.