Should check for 0xFFFE as well - this is cross platform, there are big-endian machines out there too.