VS adds the specification to the UTF-8 file, but why should your robots.txt file be encoded as UTF-8?
Since it contains URLs, it should be plain ASCII or ISO-8859-1. If your site’s URLs contain non-ASCII characters, you must encode the URLs appropriately. Creating a simple ANSI file will save the whole problem with the BOM.
Also see robots.txt; What is the encoding?
source share