finish removing std::string unmarshalling
don't use const_cast to add const, only to remove it