remove BOM and fix inconsistent line endings

Some line endings got turned into windows line endings:
find . -type f -exec dos2unix {} \;

UTF-16 bit BOMs were added to several .layout files which were described as UTF-8 in the header.
find . -type f -print0 | xargs -0 sed -i '1s/^\xEF\xBB\xBF//'