Discrimination against sex workers has become a flashpoint for advocates of freedom of expression and economic rights.