[Bug 366650] output of pdb is not UTF-8 encoded