Issue #2889989 by kevineinarsson, drunken monkey, kristofferwiklund: Fixed highlighting for text with multi-byte characters.