Fixed #23946 - Runserver command socket error decoded to utf-8

You could just use `django.utils.encoding.smart_text` here.