Fixed display of HTML content with invalid UTF-8 code points.
Fixed warnings generated when the thumbnail directory doesn't have write permissions.