There are still cases where the encodeContents will produce characters that cannot be converted, so a validation is required.
For instance, try to serialize an iOS contact (CNContact) to a VCard string: That will fail to generate but pass the previous validation code.
There are still cases where the encodeContents will produce characters that cannot be converted, so a validation is required. For instance, try to serialize an iOS contact (CNContact) to a VCard string: That will fail to generate but pass the previous validation code.