if chmoding files & folders didn't help, you may have to use a different ftp program to upload your theme/wordpress files. Some ftp programs can break working scripts do to insertion of blank characters causing scripts to break when there is nothing wrong with the code itself or the code is updating a wrong file.
filezilla is a good free ftp client to use. If this invis character is apparent in the original files, re-uploading won't solve your problem.