Support for nodejs. Fixed encoding issues