NXP-13557: add new method on PathSegmentService to generate a path segment from a given string