Don't use deprecated PyUnicode_EncodeUTF8()