kobject: drop newline from msg string