Fix encoding with GPU processing on Windows.