Fix WACK tool and utf8 BOM errors