Remove broken COMPACT_SEGS code

It has not built since at least 0c36fecb.
Simplify text decoding