Fix diff error on binary files

Fix diff error on binary files when opening Atomatigit and "toggle diff" on these files.

![err-diff-binary](https://cloud.githubusercontent.com/assets/5219415/3075016/f31c974a-e35e-11e3-90d6-16680f1b4f31.png)