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
Merge pull request #24 from Parent5446/issue23

Replace strlen() usage in case of mbstring shadowing