Covering the case where a KS arrives inside an array
PLAT-1679 #time 2h
Merge branch 'IX-9.19.1-PLAT-1679-ks-as-array' into IX-9.19.2-PLAT-1679
Converting encoded_str to a string so that str_replace won't break
PLAT-1679
Merge pull request #1575 from kaltura/IX-9.19.2-PLAT-1679

Converting encoded_str to a string so that str_replace won't break