A little helper for handling strings containing zero width control characters, ANSI styling, whitespaces, newlines, etc.