Bug 1106552 - Fix invalid conversions of string to NPVariant in plugin code. r=bsmedberg