cat-file: use a single strbuf for all output