Fix text output to a pipe with escaped quotes