I propose to change the PyUnicode_AsUTF8() API to raise an exception and return NULL if the string contains embedded null characters. If the string contains an embedded null character, the UTF-8 ...