Fix some unicode diff parsing bugs in the git backend.

This fixes some trivial bytes-vs-str issues that hadn't been caught by prior
testing.

Testing done: Ran unit tests.

Fixes bug 3467.

Reviewed at https://reviews.reviewboard.org/r/6069/