Fix unit tests on Windows: handle env vars with non-ASCII chars.