allowed a custom escape function to used