Added file extension check when saving pfi and pfp files