s3-lib: add cbuf, a talloced character buffer