pub fn write_file_encoded( path: &Path, content: &str, temp_suffix: Option<&str>, no_dereference: bool, encoding: &str, ) -> Result<()>
Write file with encoding and symlink support.