Changed strlen for binary data to take into account mbstring.func_overload