pub fn encode<A: Alphabet>(alphabet: A, input: &[u8]) -> String
Encode an input vector using the given alphabet.