Is it Valid Modified UTF-8?
Elixir, 69 bytes

import String
&amp;valid? replace replace(&amp;1,&lt;&lt;0&gt;&gt;,"\xFF"),"\xC0\x80","0"


Try it online!

Makes use of built-in string validation function. Takes input as Elixir binary.