Escape newline characters when dispatching data
fixed embarassing bug left over from refactoring to meet coding standards
reintroduce generator expression
Merge pull request #882 from lukasvogel/develop

Escape newline characters when dispatching data