Use mb_strlen() instead of static method call. Closes #409.

As it says. Currently it calls a non-existent method.