Encode pageURL before sending to VK + slight code refactoring

Something has been changed on VK side and comments widget doesn't
accept unencoded page URL  anymore. Added encoding.