pub fn form_decode(input: &str, err: E) -> Result { Ok(urlencoding::decode(input).map_err(|_| err)?.into_owned()) }