In the title, "''' are still converted in " ›"

Before you do that, please try rebuilding the container one more time and rerun the rake task. I just tried it on a test site of mine and the rake task worked fine there as well.