Work around perl bug in SvPVutf8().
Work around perl bug in SvPVutf8().

Certain things like typeglobs or readonly things like $^V cause
perl's SvPVutf8() to die nastily and crash the backend. To avoid
that bug we make a copy of the object, which will subsequently be
garbage collected.

Back patched to 9.1 where we first started using SvPVutf8().

Per -hackers discussion. Original problem reported by David Wheeler.

arcivanov/postgres-xl,xinzweb/gpdb,xinzweb/gpdb,snaga/postgres-xl,Postgres-XL/Postgres-XL,lisakowen/gpdb,xinzweb/gpdb,xinzweb/gpdb,jmcatamney/gpdb,yazun/postgres-xl,techdragon/Postgres-XL,snaga/postgres-xl,postmind-net/postgres-xl,adam8157/gpdb,arcivanov/postgres-xl,arcivanov/postgres-xl,lisakowen/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,adam8157/gpdb,Postgres-XL/Postgres-XL,ashwinstar/gpdb,50wu/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,adam8157/gpdb,yazun/postgres-xl,tpostgres-projects/tPostgres,postmind-net/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,50wu/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,adam8157/gpdb,xinzweb/gpdb,yazun/postgres-xl,adam8157/gpdb,ovr/postgres-xl,lisakowen/gpdb,adam8157/gpdb,techdragon/Postgres-XL,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,oberstet/postgres-xl,ashwinstar/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,pavanvd/postgres-xl,kmjungersen/PostgresXL,ashwinstar/gpdb,zeroae/postgres-xl,kmjungersen/PostgresXL,ashwinstar/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,ashwinstar/gpdb,lisakowen/gpdb,arcivanov/postgres-xl,tpostgres-projects/tPostgres,tpostgres-projects/tPostgres,oberstet/postgres-xl,greenplum-db/gpdb,oberstet/postgres-xl,Postgres-XL/Postgres-XL,greenplum-db/gpdb,pavanvd/postgres-xl,ovr/postgres-xl,techdragon/Postgres-XL,50wu/gpdb,jmcatamney/gpdb,ovr/postgres-xl,zeroae/postgres-xl,xinzweb/gpdb,kmjungersen/PostgresXL,xinzweb/gpdb,50wu/gpdb,arcivanov/postgres-xl,50wu/gpdb,kmjungersen/PostgresXL,oberstet/postgres-xl,Postgres-XL/Postgres-XL,lisakowen/gpdb,50wu/gpdb,50wu/gpdb,greenplum-db/gpdb,snaga/postgres-xl,kmjungersen/PostgresXL,arcivanov/postgres-xl,greenplum-db/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,50wu/gpdb,postmind-net/postgres-xl,yazun/postgres-xl,greenplum-db/gpdb,xinzweb/gpdb,ovr/postgres-xl,jmcatamney/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,snaga/postgres-xl,yazun/postgres-xl,ovr/postgres-xl,zeroae/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,ashwinstar/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,tpostgres-projects/tPostgres