fn encode(i: &str) -> String