Add support to non-english characters (UTF-8)

When options preserveWords = true, content split is not correct, if content contains non-english characters.
This pull-request fix this problem, at least the Russian letters are handled correctly.