finally found the answer when reading the file changed from
open('/path/to/feedback.html').read()
to
import codecswith codecs.open(file_path,'r',encoding='utf8') as f: text = f.read()
if anyone has a more general approach that will work, I'll accept his answer