fix unicodedecodeerror on contentfilter (Re #337)