Fix ConsoleDataWriterSpec on Windows, close #1152