Fix unicode bug in diff-quality

Fixes https://edx-wiki.atlassian.net/browse/TE-310

@sarina Please review.

@auraz Once this gets merged, you can increment the version number in `edx-platform/requirements/edx/github.txt` to 0.2.8 to get these changes for your pull request.