Adjust a ternary comparison.
Renamed the mb_str_replace internal functions to conform to PSR-2 and changed their visibility to private.
Increased the test coverage to almost 100% (due to environment-dependant functions regarding mb_* functions fallbcks 100% is not achievable).