Fix encoding when importing