What I think in addition to what Atkinso writes: If you just strip arbitrary bytes that happen to be equal in value to the numeric value of ASCII control characters or whitespace, how can you be sure that you don’t destroy valid non-whitespace unicode symbols?
You can’t! This will work only of you have actually ASCII input.
I don’t think this is a very interesting article. We already know AI suggests nonsense a lot of the time. That in no way demonstrates that it is net-negative. In my experience it’s a net positive even accounting for the times it gets things wrong.
Yes you do have to review its code closely. News at 10.
It is kind of funny that they picked an example where it made an obvious mistake for their hero image though.