Fixed stringifyNode() method

The stringifyNode() method concatenated a string and and the end of the method called toString() on this string before returning the value.
This last toString() call would mangle UTF8 strings and was unnecessary anyways.
I also replaced the string concatenation with an array that gets joined at the end, which is slightly GC friendlier.