fixed: encoding during import from a dictionary

@pvernier : please test :)