(CE-1031,CE-1041) Escape thread title on contribution and diff pages

@owend