There are two sides to any story and countries have different versions of reality that they believe in and promote. Nonetheless it's foolhardy to not notice which countries take an overly keen interest in people's communications and the "correctness" of their views... and jail those saying things they don't like.
If you're completely unfamiliar with the history of recent Chinese-western software collaborations, try googling "TOM-Skype"
Software written by persons and companies subject to the will of the Chinese government -- huge problem.
It's really no different than European countries not wanting to do business with US companies because of the NSA.
On the jurisdiction in which I, or the company employing me, operates? That can well be legitimate. You're discriminating against the laws (or unwritten government policies) in that jurisdiction, not against people.
That said, I think a general lack of trust toward the PRC is understandable.