Win ansi bug fix

This fixes part of #12