Utilize File utility to base64 encode email attachments

I needed this method while building a Transport, and found it better to move this method out of the CakeEmail class and into the File utility, so it could be re-used.