Fix file shim tests on big endian architectures (bug in the test suite only, does not affect behavior)