fix bom end output escape