[performance] remove use of snprintf in hot path; it's pretty slow on iOS
remove use of std::to_string in favor of boost::lexical_cast

std::to_string calls sprintf() internally, which is really slow