pub fn to_escaped_string<T: Debug>(x: &T) -> String