Sometimes there is problem with error: UnicodeEncodeError: 'ascii' codec can't encode character u'

UnicodeEncodeError: 'ascii' codec can't encode character u' in urlencode
This hopefully fixes it by converting url_data to utf-8.