Use QString::trimmed() only for checking that msg is not empty

Sending plain whitespace messages is a no go, so check that the message
actually contains some text, but then send the data unmanipulated, as is.