I can't try it atm but does `u'package %s' % (resource['url'],` work as well? If yes, I'd prefer it and leave the encoding to the logger.