cobertura-writer: Use ofstream to avoid copying large strings
cobertura-writer: Oops, don't use reference to str-which-will-be-modified