Py3k:  text-ify randid for tempstore.