py3 fix
diff --git a/tests/utils.py b/tests/utils.py
index 2fdff0b..4d6882c 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -336,7 +336,7 @@
                     "modulus": n,
                     "public_exponent": e,
                     "salt_length": salt_length,
-                    "algorithm": value.encode("ascii"),
+                    "algorithm": value,
                     "fail": False
                 }
             else:
@@ -344,7 +344,7 @@
                     "modulus": n,
                     "p": p,
                     "q": q,
-                    "algorithm": value.encode("ascii")
+                    "algorithm": value
                 }
                 if salt_length is not None:
                     test_data["salt_length"] = salt_length