tern: escape XML in subtitles

In the future we may or may not want to move this into the pipeline.  But for
now let's just do it here.