[py3] str.decode does not exist; str.encode was intended
Fixed #19926 -- Fixed a link to code example in queries docs

Thanks Randy Salvo for the report.
Merge pull request #858 from intgr/py3kdoc-fix

Fixed a typo in Python 3 porting guide.
Made dateformat tests reactivate original language