Fixed error when creating dir with special chars