Stripping BOM from UTF 8 with BOM encoded files

The compiler throws an exception when a flag file or a conformance configuration file has a UTF-8 BOM, so stripping it in both of these cases.
Note - JavaScript and externs sources do not have a problem with the BOM.