Replaced strnlen() with ruter_strnlen().