correctly parse metadata/record files, with respect to unicode characters