Better content-type detection for assets.