Use URI instead of File or String for paths #1544