Finally found what's wrong!
The  characters were being generated in all of my php files server-wise, and this was because the encoding of the files was set to UTF-8 with BOM, which conflicted with IIS. I changed all of the files to UTF-8 without a BOM and the error was fixed
Used UTFCast to do it, in case anyone needs to do it in batch