Convert chat-messages.data to string