Updated to latest Rust: ~str -> BufStr