Updated safe_strlen & safe_substr to trigger PHP notice if mb_string extensions are missing and encoding is present
Added tests for cli/safe_substr()