Bugfix for endiness issue. The bug was that a file from a big endianess
machine cannot be read on a little endianness machine.