Moved from snprintf to stringstream for numeric conversion.