I\'d need to replace the straight quotes with the curly ones. Mac\'s substitutions functionality does this perfectly, but I can\'t find a way to programmatically trigger it.