diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 200793b5ed157582bce2d4817a6ec1ea1698e98f..b38f81e999b80e76f3ad1a507de9112d4cd7ccc5 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -626,6 +626,6 @@ class AuthHandler(BaseHandler):
             Whether self.hash(password) == stored_hash (bool).
         """
         if stored_hash:
-            return bcrypt.hashpw(password, stored_hash) == stored_hash
+            return bcrypt.hashpw(password, stored_hash.encode('utf-8')) == stored_hash
         else:
             return False