make repodata_stringify return the result string

This is in preparation of stringify no longer patching
the str element in the kv.