Pertability: big endian convertion on magic number