For strict equivalency of behavior, we should replace ``unicode`` with ``django.utils.six.text_type``. ``django.utils.encoding.smart_text`` is probably ok but introduces a bunch of extra behavior around lazy objects that we really don't need here.