Handle poorly formed UTF-8 output.