If the tax were high enough, there would be no advantage and we wouldn't trade with them at all. We'd instead trade with ethical countries.
The money could also be explicitly put into human rights campaigns.
Alternatively, you could issue an annual dividend to all taxpayers at the end of the year. This would be akin to the carbon fee and dividend policy some have proposed.