} is primarily used as a close for code, so if you're intending to detect it, it would probably be best to actually use $chr(125)

I may be wrong, so if anyone else knows for certain, then this is the only idea have.

Code:
 if ($chr(125) iswm %i.data) {
.echo -s YES
}