For filmmaker Carl Foreman, resisting McCarthyism was a patriotic duty, even if it meant the end of his career in the U.S.