nut-scanner: fix scan_usb to remove trailing spaces from output strings

This patch uses rtrim() from libcommon to remove trailing spaces from
serialnumber, device_name and vendor_name.

see: https://github.com/networkupstools/nut/issues/26