I need to programmatically create a SP Folder (this is not via Object Model!)
The SP folders do not allow
The file or folder name ... contains invalid characters. Please use a different name. Valid file or folder names cannot begin or end with a dot, cannot contain consecutive dots and cannot contain any of the following characters: ~ " # % & * : < > ? / \ { | }.
It does not appear that there exists a .FolderEncode(string folderName) / .FolderDecode(string folderName)
So what would the best approach be. To use a regex to remove the chars? Bearing in mind I will need to write this as .Decode and .Encode in either approach (or maybe just on the way in / on insert... need to think about this...) any ideas?