Clean up more sprintf

Change to io_string_write.