diff --git a/pmxbot/dictlib.py b/pmxbot/dictlib.py
index <HASH>..<HASH> 100644
--- a/pmxbot/dictlib.py
+++ b/pmxbot/dictlib.py
@@ -8,5 +8,5 @@ class ConfigDict(ItemsAsAttributes, dict):
 			return cls(yaml.load(f))
 
 	def to_yaml(self, filename):
-		with open(filename, 'wb') as f:
+		with open(filename, 'w') as f:
 			yaml.dump(self, f)
Can't open in binary mode anymore (Python 3 requires writing yaml as text)