BibField: legacy_export_as_marc escaping fix

* Fixes escaping in MARCXML cooking.  (closes #1509)

Co-authored-by: Tibor Simko <tibor.simko@cern.ch>