Proper treatment of apostrophes and quotes