write file as UTF-8
Assign as directory root param if first character of file is '_'