fix utf8 flag init, skip some tests on broken perls