Fix the reporting of errors in files where TEST_UNICODE_LITERALS is
enabled.
Merge pull request #2987 from mdboom/test/fix-unicode-literals-error-reporting

Tests with TEST_UNICODE_LITERALS don't report errors correctly