Using ScopedResource for the StringBuilder used in YamlWireOut could remove unsafe reuse of the StringBuilder between outer and inner scopes producing unintended results.
This requires some investigation however, as not all reuse is unsafe.
See this PR