Fixed implementation of regex that ignores non-Word characters except apostrophes.