adding .segmentCoded() to provide en/decoding interface to .segment() - closes #79