port explain_unicode to Python 2