Fix length test with UTF-8