escape slashes for paths