syslog.openlog does not cope with unicode first argument

It seems that os.path.basename(__file__) can return a unicode
string. In this case syslog.openlog fails. Forcing the result
to a string causes the resulting error to go away.
Merge pull request #1807 from willthames/openlog_unicode_fix

syslog.openlog does not cope with unicode first argument