Proper handling of Unicode IO on Windows