ident: use a dynamic strbuf in fmt_ident