Fix string emitted when there are hex escapes preceding a valid hex character.

This fixes a compilation and correctness issue.
Merge pull request #699 from waywardmonkeys/further-hex-escape-fixes

Fix string emitted when there are hex escapes preceding a valid hex char...