Fixed node.js string handling
Merge pull request #25 from matehat/master

Quick fix for better string handling in Node.js