fi_tostr: ensure that fi_tostr does not overflow the buffer

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>