Fixes for new filename encoding for debs

- If a new filename encoding type is detected, try looking up platform
  info on metadata.
- If companion metadata is not found, try extracting it from deb.
- rsync filename and metadata into the cache
- Encode platform information in the directory structure of the cache