The raw (unencoded) name of the path segment
Optional trailing path separator (e.g. '/')
A PathValidationException is thrown if the name contains characters that are invalid for the path type. In particular, any path separator characters may not be part of the name.
Constructs a new path segment including an optional trailing separator.