modules: Broaden the multiline send

Moved Giannis' code to the module so both .send methods
share code.
Also escaped multilines for logs.