Added an option for html_safe to be applied to the error messages.

I added this option because I have a use case where I have added HTML to a custom error message so that it contains a link.