Avoid a crash when unencoding session data for the db backend. This is required because some configurations of MySQL (with utf8_bin collation) will return bytestring, rather than unicode data, which was causing problems previously.
Avoid a crash when unencoding session data for the db backend. This is required
because some configurations of MySQL (with utf8_bin collation) will return
bytestring, rather than unicode data, which was causing problems previously.

Refs #8340.

--HG--
extra : convert_revision : svn%3Abcc190cf-cafb-0310-a4f2-bffc1f526a37/django/trunk%408507

Belgabor/django,Belgabor/django,Belgabor/django