Author of the plugin suggested to listen for the rename_node event. So the working code is:
$('#tree').jstree({
'core' : {
'check_callback' : true
},
'plugins' : ['contextmenu', 'dnd', 'state']
}).on('rename_node.jstree', function(e, data) {
console.log('saved');
});