Added urlencode to handle non a-z chars