Fixed open method for getFileExtension and plainPath.