fix compilation and unicode errors in the importer