QF: hack to avoid UnicodeDecodeErrors in unexpected places until a better solution is found