Deprecate encodeSegments() and decodeSegments()