Implemented pluggable diff class with xdiff. Scrambles 4 byte characters unfortunately.