Perl: Expose high-bit-set magic variant
Perl: Actually emit and consume high-bit magic

Includes tests for detecting accidental UTF-8 upgrades.