in reply to Map octets to set of characters
However if you want to want to conform why not just do what everyone else does, use MIME::Base64.