pub fn atomic_write_str(target: &Path, content: &str) -> Result<String, Error>
Atomically write string content to a file.