Issue #15239: Make mkstringprep.py work again on Python 3.