error mail handler and html view utf8 encoding

Changed the error handler to use the php mail function as errors are not
being sent. Also modified HtmlView to only uft8_encode HTML if a flag is
set.