Use .with_c_str instead of .to_c_str().with_ref