Fix decode torrent data from string

is_dir and is_file checks now fail silently in order to decode string instead of file