Fixed whole-word search bugs

* Metacharacters are escaped properly
* Posts have select HTML entities replaced with their ASCII counterparts
  (replacing all of them would require DOM hackery that I'm uncomfortable with)
Fixed a rules page bug

If the user has no rules defined, newly created rows will have an invalid
prefix of "-Infinity" because no row prefix could be found and incremented.