replacing em-dashes with their HTML entity