Strip control characters when inserting notes and displaying reports