base64 is just uuencode with some extra shit attached eh? or described in an RFC somewhere, presumably. or MIME::Base64 will default to pure perl if xs no worky or simple, but designed to cope with really-legacy character sets