Convert ANSI escape sequences to HTML