Text files created on Windows typically have \r\n line endings. Trim them when reading password files.