fix chatbox history to not lose multiline messages