Density character compression codec