Move function for stripping control codes from text to utils
This wasn't working at all previously. Add a unit test to verify.