[1.6.x] Fix an encoding preamble so the tests pass on 2.7.9.
[1.6.x] Fix an encoding preamble so the tests pass on 2.7.9.

It seems there was a change in the parsing of encoding preambles in Python
2.7.9, compared to previous 2.7.x Pythons. This is a backport of the only piece
of e520a73eeea6b185b719901ab9985ecef00e5664 that's needed to prevent an import
failure under 2.7.9.

redhat-openstack/django,django-nonrel/django,felixjimenez/django,redhat-openstack/django,django-nonrel/django,django-nonrel/django,redhat-openstack/django,django-nonrel/django,felixjimenez/django,felixjimenez/django,felixjimenez/django,redhat-openstack/django