Hi John,
Thanks for the review.
> Don't these types disallow NUL bytes regardless of locale / character set?
You are right, they do. Here is the patch v3 with corrected comments.
-- Best regards,Aleksander Alekseev