Default encoding for templates should be UTF-8
Catch errors when writing notifications