fix file permissions, fixes #17919 in util
strip BOM from all text files, not just CSS files, fixes #17271