Re: YDDD with DDD being count of days since first of the year
> YDDD also depends on maximum life of any item to be less than ten years.
Not really, just use base 64 or so and you get 64 years of 262144 days each (naturally, you will be zero-based, why waste a perfectly good number when space is at a premium?).
Still a problem? Switch to Unicode!
Still a problem? Switch to Unicode code points!