Please check return value.

Perhaps this should use PyUnicode_AsUTF8StringAndSize.