A perfectly equivalent statement is that there are certain "strings that are illegal", but this is both trivially true and a clearly exposes the fallacy at play here.
A written death threat is still a death treat no matter the string encoding you use, so while yes it is an "illegal string", this is just incidental: its the threat that the string encodes that is really breaking the law.
A "written death threat" is not "illegal". I've seen plenty of such threats written on the boundaries of military sites or even electricity substations. Delivering death threats to a person may constitute illegal harassment, but so might delivering love letters. It all depends on the circumstances.
https://www.popehat.com/2012/09/19/three-generations-of-a-ha...
Please use different phrasing to discuss lawful and unlawful speech in the future.