Switched from custom json encoder to flow::io::Str.