Incorporate changes from https://github.com/Jasig/uPortal/pull/379 into portlet-utils so portlet projects can use the function encodePathSegment.
Incorporate changes from uPortal-Project/uPortal#379 into portlet-utils so portlet projects can use the function encodePathSegment.