anne hathaway as a harry potter character