Removed the encoding parameter from LogReader.open().
It was never used and would have been ignored if it were used.
Added unit tests for LogReader.open().
Removed commented-out code from LogReader.open().
Renamed LogReader.open() to _open_file() and refactored it.