Use a method of declaring templated strings that properly escapes characters. Also use utf-8 encoding for the conf.py.