Implement digit to char conversion.