Test for passing utf-8 encoded exception message to template.