in reply to MIME::Base64 is broken in 5.8.2?

The module docs describe encode_base64 takes an optional second parameter to control the end-of-line behavior. By default, it adds a line-feed every 76 characters and even short strings have it. If the second parameter is an empty string, then it is not broken into lines.
encode_base64($string, '');