[http] Convert string output data using BOM header when available. Fixes #19667