Fix search engine encoding issues with python3 on Windows

Closes #1996
Merge pull request #2005 from BrunoReX/python3_utf8

Fix search engine encoding issues with python3 on Windows