I have a C3PO which uses the object API to process received emails out to an archiving system. Part of this process involves detaching each attachment to the (Windows) file system. Everything works fine unless the attachment contains invalid characters. I currently detect some characters and substitute a '#' character which is OK, except that in some cases the attachments contain Chinese characters which I can't detect.

The user interface appears to be able to handle this situation, substituting spaces the the Chinese charceters.

Could anyone give me a clue as to how I could handle this situation?