I need to write a helper method to generate a username for a given name-surname couple, such that it should return "amyfarrah.fowler" for name = "Amy Farrah" and surname = "Fowler".
How can i be sure that my username has only ascii chars if name-surname is something like name = "ÄLİÇEÜ TÃRIĞ" surname = "GRÖßERŞİLT". The method should return "aliceutarig.grobersilt". It can be done replacing each non-ascii character with the desired one but I wonder if there is any easier solution.
Thanks in advance.
UPDATE: I need to do this using C#