Fixed typo causing script to not work

changed 'urnencode' to 'urlencode'