Some refactoring of the sync script
Do not use the python reserved keyword dir
Add function to convert values to unicode
Merge branch 'master' of github.com:thetorproject/ooni-pipeline

* 'master' of github.com:thetorproject/ooni-pipeline:
  Proposal to fix #13640
Move convert2unicode to utils to avoid circular dependency
convert2unicode does not return