Strip non utf8 content when displaying diff (ruby1.9 compatibility).
Authored by: jplang 2011-01-01
Parent: [r4603]
Child: [r4605]