Strip ANSI codes from search logs