Strip newline before canonizing classnames in cf-monitord (sysinfo)

Redmine #5132