Test 1.8.7 vs 1.9 html entity encoding in gsub
Make replace_html_entities behave in Ruby 1.8.7 the same way it does in Ruby 1.9