I thought about something like that, using `base_convert()`, but I'm afraid it may change the digit occurrences.