toRealPath, isSameFile implemented; toUri fixed