Escape ansi escape sequences so they are not counted.

Don't know where I saw this. Pretty sure somthing was paging text when it
shouldn't have been because it was counting ANSI escape sequences in the text
length.