cgi/g: Reject unknown formats