Strings::length uses mb_string if available
Strings::substring(): avoid calculating string length unless necessary
tests: fixed fixEncoding test
Json: workaroud for PHP fatal error caused by \u0000 at the beginning of key