PY3 fix for unicode encoding.