pub fn encode<T>(hrp: &str, data: T, variant: Variant) -> Result<String, Error>where T: AsRef<[u5]>,
Encode a bech32 payload to string.