pub fn convert<R: Read, W: Write>(
    input: &mut R,
    output: &mut W
) -> Result<(), Error>