cot: use String8 for path generation