stripFormatting

Strip all ANSI formatting from a string.

This can make it easy to assert the output of some Kotter rendering pass without worrying about marking up the expected output.