fast-import: Use strbuf API, and simplify cmd_data()