Move hex to ascii function into library