Replace ~str by StrBuf

Fixes build with rust master.