Case-insensitive deduplication

Keep the first occurrence of each line regardless of letter case.