Added an escape method to the datasource class