She's anonymous because contrary to the title of this thread, she's not actually been charged with a crime. Despite what some apparently believe, a man being found not guilty of a crime is not evidence that the person who made the accusation was lying. That would have to be proven in a separate case. It's entirely possible that her account is correct but they couldn't prove it. It's also entirely possible that in a panicked situation, both of them interpreted events differently and she genuinely believed that he was some sort of sexual predator, and he genuinely made a mistake. I can see why seeing someone unbuttoning his trousers and beginning the get his cock out could seem like a sexual threat, especially as he admitted that he froze after seeing her rather than immediately apologizing and getting out. I can also see why a man in that situation might panic and not act in what seems like a logical way. Of course it's also possible that she made it up, but it seems like a very opportunistic crime against a complete stranger for very little reward.
As for publishing someone's picture before they are convicted, that's always going to be controversial, but I think in the case of alleged flashers, it's probably justified because those types of criminals are often repeat offenders and such crimes are often under-reported. If it turned out that a few other women had seen him in the ladies' toilets, that would probably be evidence that he wasn't there by accident. The fact that no-one else did come forward with accusations about him helps us to believe that it was an innocent mistake.