Fix: for issue where the query string was being passed to the OS when attempting to open the file.
Fix: for opening files without file extensions.