Replace StringBuffer with std::wstring.