Add links to a generated SVG diagram.

Properly escape double quotes and backslashes in DOT while here.