Make MediaHelper::url()/webroot() return properly percent-encoded URLs, and fix missing entity-encoding for images in MediaHelper::embed().

Resolves #42
Merge pull request #46 from ndm2/proper-url-encoding

MediaHelper: Implement proper URL encoding