Return early in check_source_type to avoid invalid URI error when converting a file with spaces in the name