Unicode fix for py3