pub fn encode_string(string: &str) -> Result<String>
Encode potentially unsafe characters in the given string parameter.
string