use proper parse_uri in prepare_file_smb