Add back creation of mount point

Accidentally removed in ad4b30dd
hosts/bad: escape regexp properly [GH-4922]
Merge pull request #4929 from kalifg/master

Add back creation of mount point
core: Don't encode! since string might be frozen