Remove ANSI escape codes from strings