Fix for file encoding

Files with @ or spaces in the path / url were causing issues with the mime-type detection and with downloading. Fixes #45 



Actually also includes a small fix related to changing the favorites list to use the file list items.