Replace strlen() usage in case of mbstring shadowing

Added new protected function that checks if the mbstring
extension is overshadowing the strlen() function, and if
it is, to properly obtain the actual byte-length.

Replaces all usages with strlen() with this new function

Fixes #23