Re-encode strings back, so result stays valid JSON

Otherwise any string containing quotes will break resulting JSON