Fix message parsing and filter null characters

Stop changing the room to '' before parsing the last message, so if multiple messages are received at once, they aren't handled as if they're coming from lobby.