Nobody's talking about discrimination based on whether it sounds like you're a native speaker. The important factor was the specific language you're speaking, not the fluency in it. If you speak English poorly, well, millions of other people in this country do too, so who cares. But if you're speaking Farsi, then it's perfectly reasonable to suspect that you're an Iranian citizen.