Fixed encoding issues on Windows.