Several std::string-related fixes and Settings Manager cleanup.