the files are not encoded. i assume they sit safely on the YouTube servers. the clips are shown with Flash, which can stream video.
as to the checking of the file - it is not checked for inappropriate content. if a certain number of users report it as being offensive - it is taken off the site.