pub fn to_string<T: Serialize>(value: &T) -> Result<String, Error>
Write a properties file to a string
Important: This uses UTF-8 encoding as the result is a Rust String