Base64 encode file on OSX