X-HubSpot-Signature validation fails when request has certain Unicode characters
This is for a workflow extension that I've written. The workflow extension takes form submission values via contact tokens in the workflow settings, and passes them to a webhook I've made, which relays those form submission values to another system.
I'm noticing in my application logs that my value of the X-HubSpot-Signature isn't matching the one in the request headers when the request contains a certain Unicode character. It's some "line separator character" (I'm guessing this is from customers copy/pasting from Microsoft Word into a HubSpot form)
Other Unicode characters work; I tested the signature validation when the body contained Korean text, and that worked fine.
Here's a sample request body that would cause me compute a mismatching signature: