Merge "Fix stack-use-after-scope for a `std::string`"