[typescript converter] Strip non-identifier chars from paths

Issue #266