Making --one-line truly one line per host by converting newlines in output to the string \n

See issue:
https://github.com/ansible/ansible/issues/9343