list-objects: convert name_path to a strbuf