Another stab at the UTF-8 system, this time simplified as much as possible.
See the pod for pg_enable_utf8 for an explanation.
Note that this commit will probably be picked out later, as we
want to release a new minor version before releasing such a big
change