escape html chars in ansi output stream