detect which type of EOL (AKA line-ending, newline) characters are in a stream