Ministers are bringing forward a proposal after a barrister was accused of using rape myths during Russell Brand's trial.