Improve Pascal & XML; plain text could change to UTF-8; tidy up.