MSVC6's basic_string<> had reference counting, so we need to handle it