sanitize: Understand DOS-style newlines. Google Docs "export as text" new-page marks. Extract a proper main function.