(cherry-pick) wayland: Truncate strings sent via plasmawindowmanager interface
Wayland has a limited size for strings in arguments. We should truncate any strings that come from user-defined data before sending.
We keep the full title around within kwin as it keeps logic simpler. Size length logic is lifted from QWaylandWindow's setTitle
(cherry picked from commit f88ff99d)