var thumbnailSetting = '/c_fill,h_150,w_100';
thumbnailSetting = encodeURI(thumbnailSetting );
That will take care of it for you.
EDIT
You have an invisible character in this line, right after the opening quote:
'/c_fill,h_150,w_100';
I noticed it while making this JSFIDDLE. I left it so you can see. That code was copied directly from your question. Remove it and you should be good.