update string conversions

With these changes `make test` passes without any compiler warnings against `rustc 0.11.0-pre-nightly (a183829 2014-05-28 01:06:45 -0700)`.