Fix bug when post title contains apostrophe.