Fix conversion from NSString to jsval.