[1.8.x] Refs #24324 -- Fixed crash in {% debug %} tag on Python 2.
[1.8.x] Refs #24324 -- Fixed crash in {% debug %} tag on Python 2.

If Django is installed in a path that contains non-ASCII characters,
the tag failed with UnicodeDecodeError.

Backport of 098fa12dd390e733c7568d824eea2c346550c75a from master

pquentin/django,h4r5h1t/django-hauthy,pquentin/django,h4r5h1t/django-hauthy,h4r5h1t/django-hauthy,h4r5h1t/django-hauthy,pquentin/django