There shouldn't be a list of approved names like in France, but at the same time, parents shouldn't be allowed to give their kids names that are just plain offensive, or will result in misery for the child, the kid has to live with the name at least until they are old enough to change it.
That said, the judge's reasons for changing it were moronic.