handle %Nc in sscanf; fixes #1407