snprintf() was replaced to ostringstream (part 2)