fix ascii encoding issue in debug output