in reply to use bytes without breaking perl 5.005 or 5.004?
$bytes = pack "C0a*", $bytes_or_utf8; [download]