Adding check around unsanitized prefix