Bugfix: adding base64 encoding content type transfer header so that we
can send files over in base64 for all file types