Use Ruby 1.9's end_with rather than rails 2.3's ends_with