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

Change-Id: Iefa1ad0d843018eecd61c92859db87c5fb8ff72b