Correctly handle field, subfield, and record separators