Fixed chat message parsing