Fixes #55 - Preserve cursor position when pasting multibyte characters