Update to upload file

Update to ensure correct encoding.