LPS-50299 remove leading an trailing '-' from friendly URLs