I don't uderstantd. Isn't to_owned copying the data in a new buffer? Is there a better way? CString seems to only accept a raw vector. Maybe I should return something else than a CString.