Avoid codec spelling issues by just using the utf-8 default.
diff --git a/Lib/random.py b/Lib/random.py
index 6bdd439..33d3634 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -114,7 +114,7 @@
         if version == 2:
             if isinstance(a, (str, bytes, bytearray)):
                 if isinstance(a, str):
-                    a = a.encode("utf8")
+                    a = a.encode()
                 a += _sha512(a).digest()
                 a = int.from_bytes(a, 'big')