Fixed a bug in strip_ansi that caused issues all over.