Fix for broken links with single quote in title

This looks like it could possibly solve the problem. Let me know what you think.