Use the E'..' syntax for escapes in tests

Versions before 9.1 defaulted to standard_conforming_strings=off,
which this test case did not fully take into account.
Send the same client_encoding we expect to get back

While 9.1 and later always replied with "UTF8", 9.0 at least seems
to send us back "UTF-8" if that's what we asked for.