Handled encoding error in text import