Bugfix: exporting strings with single quotes can mess up json.