Dropbox - Encode file names before sending

Hi

I’m getiting following dropbox error in error log. Backups are working fine. Is this a filename or doctype name error due to latin letter “ž” or is it a bug? Some guideance to point me in the right direction of searching for error is appreciated.
Running latest version on virtualbox.

{'retry': 0, 'log': <function log at 0xb712c614>, 'site': u'erpnext.vm', 'event': u'daily_long', 'method_name': u'frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backups_daily', 'method': <function take_backups_daily at 0xb713b79c>, 'user': u'Administrator', 'kwargs': {}, 'async': True, 'job_name': u'frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backups_daily'} Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 61, in execute_job method(**kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 158, in take_backups_daily take_backups_if("Daily") File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 165, in take_backups_if take_backup_to_dropbox() File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 178, in take_backup_to_dropbox frappe.errprint(error_message) File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 230, in errprint print cstr(msg) UnicodeEncodeError: 'ascii' codec can't encode character u'\u017d' in position 6: ordinal not in range(128)

Can you raise this at Issues · frappe/erpnext · GitHub

Done. Thanks. Dropbox backup error - ordinal not in range · Issue #7070 · frappe/erpnext · GitHub

After applying the changes as per fix on : Dropbox backup error - ordinal not in range · Issue #7070 · frappe/erpnext · GitHub Now getting this error;

{'retry': 0, 'log': <function log at 0x7f58452ef488>, 'site': u'erp.local', 'event': None, 'method_name': u'frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backup_to_dropbox', 'method': <function take_backup_to_dropbox at 0x7f5845309cf8>, 'user': u'Administrator', 'kwargs': {}, 'async': True, 'job_name': u'frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backup_to_dropbox'}
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 61, in execute_job
    method(**kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 190, in take_backup_to_dropbox
    send_email(False, "Dropbox", error_message)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 213, in send_email
    frappe.sendmail(recipients=recipients, subject=subject, message=message)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 411, in sendmail
    communication=communication, now=now)
TypeError: send() got an unexpected keyword argument 'now'