added user_encoding to EventImportFile
fixed creating tempfile