Merge #18324: set_payload now correctly handles binary input.