Is there a way to get PHP to deal with an input file independently of OS encoding? I'm trying to filter based on \n but get crap when stuff like \r comes into the picure. I'd prefer to stick to explode() rather than regular expressions, though I can convert over.