clone: properly create target directories during local clone (issue6581)

The store encoding was mudding the water. This lead to local clone crashing for
file with long filename as their destination directory needed to be encoded.

Differential Revision:
20 jobs for topic/stable/issue6581 in 95 minutes and 45 seconds (queued for 6 seconds)
Name Stage Failure
windows-py3 Tests
Reusing existing Mercurial repository
lock: free
wlock: free

Pulling changeset 7b5827f1a1996161c755182b600ba21a62138b3c...
pulling from https://gitlab-ci-token:***
abort: filtered revision '7b5827f1a1996161c755182b600ba21a62138b3c' (not in 'served' subset)
Cleaning up file based variables
ERROR: Job failed: exit status 1