strip ansi escape characters in output files