How much is Ariel? (Proctor & Gamble in the UK) They make bio and non-bio versions. Maybe pretreating would help. Some machines have an extra cycle for a pretreat soak before the regular wash.
They banned chlorine for water treatment here, except for 4 times a year to flush the pipes. Chloramines are used instead, or UV and ozone. UV and ozone are more expensive, so you can guess which is used more often. Chloramines don't work as well at killing bugs, so the chlorine flushes are needed to kill off the slimes that grow in older metal pipes.
We get advance warning of the periodic flushing. The sediment and crud discolors the water and can foul toilet valves to the point of needing replacement. If you have an ice maker, it either has to have a replaceable filter or a programmed backwash cycle.
The water here is usually treated with aluminum sulfate and then buffered with carbonates so it is slightly passive, to minimize rusting older metal pipes. The flushing removes some of the lime scale buildup and extends the life of the pipe.
When they went to chloramines everyone's toilet leaked and the makers of the rubber tank flappers had to change the material they made them from. The ammonia in chloramines may be worse than chlorine alone. People with kidnney problems don't need the extra nitrogen.
http://www.chloramine.org/chloraminefacts.htm
Chlorine was banned because we drink swamp water. The tannins (plant color) reacts with bleach to form compounds suspected of causing cancer, but chloramines don't.