encoding unicode to ascii in warn_import_error
encoding unicode to ascii in warn_import_error

Encoding unicode to ascii with replace if Python 2 before casting it to string to avoid UnicodeDecodeError
mottosso/Qt.py,mottosso/Qt.py