GUI: wrap the message-ids in brackets and support more of them

Also be sure to not cast from QByteArray to QString directly.