Use django.utils.encode smart_text or smart_str for intelligent unicode handling