Fixed the unicode error in sanitinizng html.

avoid sanitinization on error and just returning the original html.