text insertion: Remove faulty unicode chars before applying regex