imwayland: fix deletion of multi-byte characters

Convert byte offsets into character offsets to match what
GtkIMContext::delete-surrounding expects.
Status Job ID Name Coverage
  Build
failed #156961
build

manual #156962
win32 allowed to fail manual
msys2-mingw32
 
Name Stage Failure
failed
build Build There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log