Don't emit invalid character literals.

Current clang (3.4) fails on '\xFFFF' as a character literal.

Fixes #695.