read_sysfs_string: Remove trailing newlines

Remove trailing newlines from the read buffer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>