Fix JSON encoding issue
Chat integration