What? Do you have to go to a judge if you want to change your name in general, or is there a special law that say that if you change your name to something differently gendered you need a judge?
I have a trans friend and the biggest name related problem E. had was getting a new user account at work (as far as I know anyway).