Add sublime files to gitignore
Use io.open to transparently decode input file
Reorganize the code

- Move reading of a file into separate function
- Use os.path.splitext instead of hardcoded slising
- Generate output filename after successfull encoding
Bump version