Also, this drops trailing '\r' from sysattr value set in sd_device_set_sysattr_value().
mentioned in commit 7f8ebaa5