Set environment variable HGENCODING for mercurial.

Closes #6.
Require Diff 0.2 for tests.