text_formatter: ensure quoting of strings