errorHandler: replace \n with <br/>. closes #576