in reply to OT: What happened to uuencode?

Well, not entirely off topic though, here's a Perl solution - puuencode

Usage: puuencode inputfile as_outputfile