Use existing escaping function pointed by James