diff --git a/flask_apscheduler/auth.py b/flask_apscheduler/auth.py
index <HASH>..<HASH> 100644
--- a/flask_apscheduler/auth.py
+++ b/flask_apscheduler/auth.py
@@ -17,7 +17,21 @@
 import base64
 
 from flask import request
-from werkzeug.http import bytes_to_wsgi, wsgi_to_bytes
+
+
+def wsgi_to_bytes(data):
+    """coerce wsgi unicode represented bytes to real ones"""
+    if isinstance(data, bytes):
+        return data
+    return data.encode("latin1")  # XXX: utf8 fallback?
+
+
+def bytes_to_wsgi(data):
+    assert isinstance(data, bytes), "data must be bytes"
+    if isinstance(data, str):
+        return data
+    else:
+        return data.decode("latin1")
 
 
 def get_authorization_header():
add functions that were removed in werkszeug.

for #<I>