If the filename contains ':' it is interpreted as a protocol. It also handles filenames starting with '-'.