Use rustc-serialize instead of serialize crate

The serialize crate is being deprecated in favour of the one from
crates.io. PR: https://github.com/rust-lang/rust/pull/19820