errors: ensure err msgs are properly encoded for jinja2 or raw text response