diff --git a/refcycle/object_graph.py b/refcycle/object_graph.py
index <HASH>..<HASH> 100755
--- a/refcycle/object_graph.py
+++ b/refcycle/object_graph.py
@@ -330,7 +330,7 @@ class ObjectGraph(IDirectedGraph):
         try:
             dot_file = os.path.join(tempdir, 'output.gv')
             with open(dot_file, 'wb') as f:
-                f.write(dot_graph.encode('utf8'))
+                f.write(dot_graph.encode('utf-8'))
 
             cmd = [
                 dot_executable,
utf-8 seems to be the more standard name for the encoding.