Subfolder deploy and disqus spec chars fix

First I experienced problems with deploying to subfolder. Then I had a problem with disqus, 'causeI made a post with ' in name of it. I think my changes solve some of that problems.