emit_unescape_error
Option<ErrorGuaranteed>
And use the result in `cook_common` to decide whether to return an error token.