#19063: partially fix set_payload handling of non-ASCII string input.

This is a backward compatible partial fix, the complete fix requires raising
an error instead of accepting the invalid input, so the real fix is only
suitable for 3.4.
4 files changed