Use html safe output for errors with TEI parsing