Strip diagnostic messages before writing them to stderr
Strip diagnostic messages before writing them to stderr

For example dbus error names contain newline characters. By stripping
the message it still takes just one line in the output.

maikelwever/mce,mlehtima/mce,mikkoharju/mce,maikelwever/mce,kimmoli/mce,mlehtima/mce,maikelwever/mce,spiiroin/mce,mlehtima/mce,kimmoli/mce,mikkoharju/mce,kimmoli/mce,android-808/mce,mlehtima/mce,mikkoharju/mce,spiiroin/mce,android-808/mce,spiiroin/mce,android-808/mce,android-808/mce,spiiroin/mce,maikelwever/mce,kimmoli/mce,mikkoharju/mce