This plugin has tooling for dealing with files that contain a byte order mark (aka BOM). It can strip BOM's from files, warn that files contain BOM's, or fail the build if BOM's are detected.