We keep serialize for method dealing with streams. If it returns a `std::string`, let's use `toString`.