TIP 317 created [binary encode base64]. Its options were not specified in fine
detail, but there was an apparent implicit understanding that the functionality
of the base64 package was being copied.
They are not consistent treating multi-byte -wrapchar values.
% package require base64
2.4.2
% puts \u00ca
Ê
% set code [base64::encode -maxlen 3 -wrapchar \u00ca abc]
YWJÊj
% base64::decode $code
abc
% set code [binary encode base64 -maxlen 3 -wrapchar \u00ca abc]
YWJÃj
% binary decode base64 $code
invalid base64 character "Ã" at position 3
|