Fixed node.js string handling