Replace bad encoded character