Use U+FFFF for invalid characters

This used to be U+FFFD, but if a character is not assigned in an
encoding, U+FFFF is a better match.