Fixed #22315 -- str/bytes mismatch in staticfiles

Trac ticket is here: https://code.djangoproject.com/ticket/22315