Rather than dealing with the ansi codes, can you set (or stub) the color option to false so it is never colorized in the first place?