set proper content type from filename