Apparently EOF is > 255. Fix broken stuff on non-x86 chips.