Don't crash on files like /dev/ttyS0