Fixes graphviz compatibility for 'textnodes'.