Convert \r\n line endings to \n before checking whitelist (bug 1088680)