Fix URI management

Closes #134 (https://github.com/mate-desktop/mate-file-manager/issues/134)