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.