api: treat uri as filename if no protocol scheme provided.