init: Use std::string for write_file()
am: ef52ae14ab  -s ours

Change-Id: Ifecee73026521aa43a7248fa026e8210405431b7