Fix segfault on error in PyUnicode_AsEncodedString
PyString_AsStringAndSize must accept both unicode and bytes.
Use str on unknown obj for python 3
Port fdw to python 3
Fix bytea column type in python 3