tweak strip_harmful_tags() for php 5.3.2 compatibility (refs #620)