further workaround for IRI misinterpretation
json serializer now produces IRI-compatible JSON
ensured that temp dirs are removed