Added strnlen replacement (Untested)