Merge "init: Use std::string for write_file()" am: 815578cef2 am: 5ff631620e
am: 5981eae421

Change-Id: I3259e0cc0af1079efd9d8a267e6aaeb34c74695c