add check for htmlMode before sending header
Merge pull request #45 from Andrewpk/master

Add charset to header for _exceptionHandler