escaping buf in graphviz output fixed