checking the last character in the encoding, since thats the one its omitting