Added length checks for node names (will make things easy for control frames).