More bytes/unicode fixes.
Fix deprecation warning.
Two Py3 security problems.

We depend on view level security, so removing proxies is no big deal.