escape dcat string for json validation