Plugin to replace " and ' with their curly Unicode equivalent (“”, ‘’)

Note that I've ensured that `content-changed` is triggered as the quote is replaced, but do I also need to insert stuff into the undo manager?