Properly quote JSON string data in MQTT message.