Strips control characters and ECMA-48 escape sequences from text. Inspired by https://no-color.org/