Fixed downloading media with proper filenames

Also fixies https://github.com/CODeRUS/mitakuuluu2/issues/253