I had this issue when I generated source code via powershell to link file paths to variables automatically.
My fix was to resave the file as UTF-8 BOM.