process circuit_id and remote_id(may contain unprintable chars) before inserting to database.