fast-import: use xsnprintf for writing sha1s