Fix pack_int calls.
2 more refs.
Try to deal with write_str NUL delimiter mess.
Rework decode_offsets slightly.