osclass/Osclass — pull request #1394 by emanwebdev (2014-03-19 00:23:33+00:00)
Title: Fix substring cut in osc_highlight

Fix multi-byte characters cut
> mb_strcut() extracts a substring from a string similarly to mb_substr(), but operates on bytes instead of characters. If the cut position happens to be between two bytes of a multi-byte character, the cut is performed starting from the first byte of that character. This is also the difference to the substr() function, which would simply cut the string between the bytes and thus result in a malformed byte sequence.