Write file in utf-8