Fix encoding error when clicking on a file.

Mac OS X 10.9, ST 3062.

Currently, almost every click on a file generates a UnicodeDecodeError, which isn't surprising since no encoding was passed to open. This commit fixes that.
Merge pull request #200 from aparajita/st3

Fix encoding error when clicking on a file.