Functions for reversible encoding of integer serial numbers to web- and human-friendly tag strings.