need to use encodeUrl() method to decrease string length