Templated alkylation of hexahistidine function in recombinant proteins