Better UTF-8 support
I've been messing with this for hours.
I'm making an input with better support like left/right arrow and home/end, backspace, insert-text-in-the-middle, support (if there's already a solution for this I'd like to know).
Problem is when inserting and dealing with changes, when a multi-byte utf-8 character is in the text, like