Remove invalid characters causing compile error