Fix error where node name isn't encoded (which means the cuts don't return anything and nothing gets visualised)