SAP Adapter creates non-escaped & characters

THe SAP IDoc adapter that we are using is not escaping the ‘&’ symbol by converting it to ‘&amp’; is there a setting in the IDoc adapter that needs to be set to do this?