fixes #642 adding $smcFunc['htmlspecialchars'] to the log functions

Signed-off-by: Illori <illori@simplemachines.org>