[1.7.x] Fixed #22686 -- Prevented makemessages crash with unicode filename
[1.7.x] Fixed #22686 -- Prevented makemessages crash with unicode filename

A more extensive fix has been reverted on the 1.7.x branch, so this
minimal fix replaces it.

oscaro/django,oscaro/django,oscaro/django,jyotsna1820/django,oscaro/django,jyotsna1820/django,jyotsna1820/django,jyotsna1820/django