[FX] Further sanitize generated names (#44808)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/44808
Test Plan: Imported from OSS
Reviewed By: suo
Differential Revision: D23739413
Pulled By: jamesr66a
fbshipit-source-id: b759c3ea613dfa717fb23977b72ff4773d9dcc99