Use Std.string(data) instead of data.toString()

GConsole.log() assumed that the object passed into it had a toString() method.