fix ansi escapes in logs