Bijective conversion between natural numbers (IDs) and short strings