Move utf-8 encoding to template dir, and fix extensions list