This solution works for me:
- use Notepad++ (Windows) and open your source file.
- Change Encoding in ‘UTF8 without BOM’
- Save file and upload onto the webserver

You should have resolved the ‘headers’ error.