Bash add UTF8 (UTF-8) BOM to file

sed -i '1s/^\(\xef\xbb\xbf\)\?/\xef\xbb\xbf/' foo-*