Replace deprecated `CString::with_ref()` with `CString::as_ptr()`.
`String` does not implement `Index` trait anymore.
Merge pull request #35 from utkarshkukreti/fixes-for-rust-2014-07-03

Fixes for rust 2014 07 03