Don't emit invalid character literals.

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

Fixes #695.
Merge pull request #696 from waywardmonkeys/invalid-character-literals

Don't emit invalid character literals.

Lets hope gcc likes this as much as clang.