fix UnicodeDecodeError in debug templatetag

ticket: [23060](https://code.djangoproject.com/ticket/23060)

pls, review, thanks :beer: 
Simply use force_text, as smart_text is used to preserve lazy strings, which is not a concern here.
I'd also use force_text on the pformat call below, in the case some path would contain non-ASCII chars.