A Code Controlling Specific Binding of Proteins to Double-Helical DNA and RNA