diff-tree: convert base+baselen to writable strbuf