Handle special chars for name input