Added stringencoder library to support other browsers as well