Merge "init: Use std::string for write_file()"