Proper encoding of JSON MARC records