Remove BOM when reading text files

This should restore pre-27e2e2f35ff780e1df79b034a00f025a6b7d1e44
behavior with regards to BOM accumulation in config files