Cleanup: Use std::string instead of char arrays/pointers.

A utility function string_format has been added util_string to implement
sprintf-like functionality and avoid using the moronic stringstream crap.