Fixes #9 by introducing a new --eol option to force a line ending type

Makes use of `io.open` instead of standard `open`.
The `io.open` behaviour is actually default in Python 3.