imwayland: fix deletion of multi-byte characters

Convert byte offsets into character offsets to match what
GtkIMContext::delete-surrounding expects.