fix invalid character