[kotlin] artifact: escape invalid path to avoid IPE