fix some problematic characters