Add XML escaping to docbook files

Previously, docbook save files that contained text with
 XML-like elements such as angle brackets, would be saved
without modification - making them invalid XML. This change
escapes XML elements.