SWC-673: add editor, and fix encoding since pipes are in TeX commands
fix tests
from code review
Merge pull request #508 from jay-hodgson/SWC-673

SWC-673: add editor, and fix encoding since pipes are in TeX commands