It might seems simple at a glance. Some details here: Check for filenames which might be invalid on other platforms