Fixed bug with replacement of petpide ambiguity chars with X