Great News! this is a very simple fix. I had the same problem with my code. take your code from Webcor for ST and import into Webcor for Habitat. once you do that then go in and change all of your spaces and other characters using this table. once you do that it will work just as it did on ST. I had to update my code because I had the same problem. let me know if you have any questions.
my Code was like your your and I had to update it to the following. see how there are no spaces instead it is %20 so for ('IRsend{"Protocol" : "SONY" , "Bits" :32, "Data" : "0xE17A609F"}')
it would instead be
('IRsend%5C%7B %22Protocol%22%20:%20%22SONY%22%20%2C%20%22Bits%22%20:32%2C%20%22Data%22%20:%20%220xE17A609F%22%5C%7D%22)
or my code below.
cmnd=IRHVAC%20%7B%22Vendor%22:%22Mitsubishi_AC%22,%20%22Power%22:%20%221%22,%22Mode%22:%20%22heat%22,%20%22FanSpeed%22:%20%22Auto%22,%20%22Celsius%22:%20%22Off%22,%20%22Temp%22:%20%22%HTemp%%22%7D
HTemp = Virtual Thermastat Temp
Cl = %22%7D