Stop using strnlen() to compensate for corrupted buffers