Allow --diff on UTF-8 encoded files and templates