Replace string manipulation in scope_import_unit with ident_t operations