added mocha and chai as dev dependency, browser test loads mocha and chai from node_modules. Added UTF8 string support and test