Now you can use str() on objects of znc.String. The same is true for arguments which represent CString&.