You are a Python developer. Write a script that scrapes BBC News homepage and extracts headlines and links. Use requests and BeautifulSoup. The script must: 1) Fetch BBC News, 2) Find headline elements, 3) Extract title and URL, 4) Save to CSV, 5) Run periodically and detect changes, 6) Send email with new headlines, 7) Handle encoding. Add comments.