Properly encoding it didn't change that the pollHeaders afterwards was still set to the value that I put for pollData when getting the context via the API
Here are the values I put in for pollData and PollHeaders
pollData: "{\"data\":\"test\"}"
pollHeaders: "Authentication:Bearer12345"
This is also happening if I use the set context strategy ZAP api.