Fix the build with MSVC

MSVC does not behave nicely with multi-line QStringLiterals so
use QLatin1Strings with string builder.
Another attempt to improve WebSocket handshake reply handling