remove invalid character