base36
base36(buf2, i));
static char *base36 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
*p++ = base36[fid % 36];