APItest/t/utf8_warn_base.pl: Move some setup code