Introduce escaped text support for ingest/extract

Didn't really look very hard for something that does what we want. Happy to be told to use something else.