Add PAGE_PATH_SEGMENT_MAX_LENGTH limit for slugSafeString