Update the DOT output for the `diagrams` tool to ensure that node contents are always well-formed