(found while testing bug 5526)
We crop the desktop name before we use it as a window title in order to make sure that "ThinLinc Client" is always visible. However we do this cropping on a byte level, which can result in an invalid UTF-8 sequence if we manage to slice a character in half. On X11 this results in the system assuming the title is in latin 1 and just gives us UTF-8 noise. Not sure what will happen on Windows or macOS, but it probably won't be the expected behaviour.
For the same reasons we are also overly aggressive with the cropping as we set the limit on the assumption that each byte was one character.