Step #1 in supporting \u0000 - add size_t string lengths to API.
Also add string stealing, as used by pack, to API.