Optimize psuedo curses speed

Avoid some extra utf8 lookup functions if the line doesn't contain any utf8 character.