basic ansi escape code filtering