Google: Fix encoding with Python 3.
Merge branch 'py3k-backport' into testing
Filter: Fix encoding with Python 3.
Internet: Fix Python 3 compatibility.
Web: Fix Python 3 compatibility.