Trims input filename
Processes local files in addition to URIs during loading