Change EOS value to 0xFFFFFFFF

While 0xFFFF is officially a noncharacter, it still exists in the wild,
and therefore can cause issues with texts having it.
0xFFFFFFFF is less commonly used because it can't be encoded by utf8/16.
Honestly, this should just be changed to have another return value or
way of checking that, since this return value is hacky.