convert byte offset in utf8 content to caret position
convert caret position to byte offset in utf8 content
See Source File