escape raw strings in optimizers [ci skip]