Do not re-encode / to # if / is a platform separator, and correctly handle permission...