catch unicode errors before import begins