Adding option :file_encoding (defaults to UTF-8).
Merge pull request #7 from MrTin/open-with-file-encoding

Adding option :file_encoding (defaults to UTF-8).