Fix deprecated code.

* Remove Vec::get for indexing in favor of vec[T],
* Use string::raw::from_buf instead of str::raw::from_c_str.