PyOS_snprintf() to avoid temporary buffer allocated on the stack and a conversion from bytes to Unicode.