Replace some unsafe code with a safe stdlib wrapper.
Merge branch 'vec-bytes' of https://github.com/huonw/rust-http