Remove invalid character for PG.