Be careful with Path.GetExtension() and Path.GetFileName()