fixing encoding tests on Windows