Remove UTF-8 requirement from `xdg_toplevel::set_title`
xdg_toplevel::set_title
currently requires that the string is UTF-8 encoded. However this is not enforced by sway or plasma and existing applications such as mpv execute this request with non-UTF-8 strings.
Instead, https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/0aaf12157ede8fdf6eda49963da313bd1a7d930f/stable/xdg-shell/xdg-shell.xml#L638 could be replaced by
The string should be encoded in UTF-8. The compositor will replace all invalid UTF-8 sequences by the Unicode replacement character U+FFFD.
This seems to be what sway and plasma are doing. Otherwise we could also say that the compositor transforms non-UTF-8 input in an unspecified way. Point being that APIs that return the title set by applications will always return valid UTF-8.