Support "smart quotes" in input. Enhance link quality

If smart quotes are in the input file, they will be passed correctly to
LyX.