fixed bug in ansi stream which resulted in escape code being displayed on windows