Fix issue with ANSI escape characters.

Closes #3.