Update CString to convert to string instead of strbuf

Another breaking change was introduced as StrBuf is removed in favor of String. This PR changes `to_strbuf()` to `to_string()` where it's used on converting CStrings.