Serialization algorithm for cortex combo string.