Fix ioctl file reading on platforms which have unsigned "char" by default

Found on ARM.

https://github.com/martinpitt/umockdev/issues/11