Fix htmlentities version for ruby 1.8.7 support

htmlentities 4.3.2+ doesn't support ruby 1.8.x