Added encoding header and corrected syntax error