A non UTF8 title on Wayland causes disconnection from the server. Resolve by using the path as-is unless invalid UTF8 byte sequences are found, in that case they're replaced by `?`. This is skipped on WIN32 & macOS since the issue only exists on Wayland.