[Fixed] proper encoding of metadata values when creating a new directory