[ticket/638] Prevent running htmlspecialchars() twice on message text.

CUSTDB-638