Implement proper ASCII encoding of consecutive digits.