use encoding lib from crates.io rather than github