[performance] remove use of snprintf in hot path; it's pretty slow on iOS