use OC files API to create missing directory

use OC files API to create missing directory this should handle special chars in every environment correctly.

This should hopefully fix #4425