Port to rust-0.7

.as_bytes().to_owned() may not be optimal