htmlentities 4.3.2+ doesn't support ruby 1.8.x