SubgraphExporter: escape backslashes. Fixes #2183.