Convert more ~str to StrBuf

Fixes errors caused by breaking changes in rust.