Added UrlPathEncode to AddSegment method.