replace disallowed characters '@' and '-' in method names