Encode full exception message to HTML code.