discover: Don't access bytes before the start of empty strings