handle garbage CR output on windows errors