Fix bitmask typo in encodeUTF8