add script to trim bom.