Workaround for extended characters in errors