An extension to NSString to simply encode strings for JavaScript. (iOS/ ObjC)