* Fix unicode length check bug, and port tests to be compatible with perl 5.20.0