diff --git a/library/configfile.py b/library/configfile.py
index 62e30ca..bcf27d9 100644
--- a/library/configfile.py
+++ b/library/configfile.py
@@ -47,7 +47,7 @@ def run_configfile_module():
 
     changed = False
 
-    with open(path, 'rb') as input:
+    with open(path, 'r') as input:
         with tempfile.NamedTemporaryFile(dir=os.path.dirname(path)) as temp:
             for line in input:
                 print(expand(line), end=' ', file=temp)