handle case when value is not a string

...

uploadFields: {
      'foo': true,

..


if you pass something like this is breaks the plugin because you are trying to call indexOf on a datatype... which it does not support ... so here is a fix