Fixed file encoding issues and new compiler issues (upgraded compiler)