Add encoding argument 

The application does not work with templates that contain accented characters 

This change adds an "-e" argument specifies the encoding to be used to read the file

The code was changed to just get this argument and uses the `open` of the `codecs` module instead of the standard python `open`