diff --git a/.gitignore b/.gitignore
index 8b8cc9a..ac86dba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.git
 wicd.egg-info/
 *.bak
 **/*.pyc
diff --git a/setup.py b/setup.py
index 87fb908..3489d31 100755
--- a/setup.py
+++ b/setup.py
@@ -631,7 +631,7 @@ def run(self):
                     msgfmt = subprocess.Popen(['msgfmt', '--statistics', pofile,
                         '-o', '/dev/null'], stderr=subprocess.PIPE)
                     returncode = msgfmt.wait() # let it finish, and get the exit code
-                    output = msgfmt.stderr.readline().strip()
+                    output = msgfmt.stderr.readline().strip().decode('utf-8')
                     if len(output) == 0 or returncode != 0:
                         print(len(output), returncode)
                         raise ValueError