No idea, I didn't build the thing, just suggesting how it could work. If you want to cover [extended] ASCII, then every first digit could indicate a one or two digit code, one and two also a three digit code. So one possibility would be to have three digits for first digits zero, one, and two and otherwise two digits. All single digit ASCII codes require two leading zeros and all two digits ASCII codes starting with one or two require one leading zero. You could of course also make everything three digits with leading zeros as needed, would be easier at the cost of more dialing. Or use a timeout, if no new digits arrives within a specific time, then a new character starts.