How to configure DBeaver to save files without a BOM for UTF files?
Using sed

You can always cut out three bytes (the bom) with sed

sed -i '1 s/^\xef\xbb\xbf//' *.txt


That'll actually do it in place.