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

Change-Id: I340cd41c89c251d03121079df8457a901228d7b2