The arginine-rich carboxy-terminal domain of the hepatitis B virus core protein mediates attachment of nucleocapsids to cell-surface-expressed heparan sulfate.