tests: fix utmpdump/to-binary for bigendian