Clients may pass not `NULL`-terminated strings as the function takes a `len` argument. Use that argument.
The wayland input module now represents text-input-unstable-v3 support, while the old module supporting gtk-text-input was renamed to gtkwayland.