replace htmlentities with htmlspecialchars

htmlentities was mutilating bbcode.