Include encoding in signature payload (#30174)
Fixes #30119
Include the encoding in the signature payload.
before

after

(cherry picked from commit b6a3cd4b8dc20ba48d0044a972f6ff0f0de6e49e)
authored by