As @MatsLindh said in the comments, the problem was due to the UTF-8 BOM and was solved by simply removing it.