Support BOM in UTF-8 configuration files

Remove the BOM, if detected, before processing .conf files.